# $Id$
# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=libbytesize
pkgver=1.0
pkgrel=1
pkgdesc='A tiny library providing a C "class" for working with arbitrary big sizes in bytes'
arch=('i686' 'x86_64')
url="https://github.com/rhinstaller/libbytesize"
license=('LGPL')
depends=('mpfr' 'pcre')
makedepends=('python')
source=("$pkgname-$pkgver.tar.gz::https://github.com/rhinstaller/libbytesize/archive/$pkgver.tar.gz")
sha512sums=('0feca102923aa05638f57f1b35593636ccc0b6cf5198eb9e8b5d805b44d270a9b3b37953ad24d445e607b09f01d64ac69e4a42e08c5f57fd46a3dea03f69c2e5')

build() {
  cd "$srcdir"/$pkgname-$pkgver
  ./autogen.sh
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir"/$pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}
